import {http} from "@/utils/request.js"

// 添加收藏
export const addFavoriteList = (data) => {
	return http({
		url: '/favorite/add',
		method: 'POST',
		data: data
	})
}

// 取消收藏
export const deleteFavorite = (id) => {
	return http({
		url: '/favorite/delete',
		method: 'DELETE',
		data: {
			id
		}
	})
}